package com.mdjukebox.model.jukeboxfacade.vo;

import java.sql.Time;
import java.sql.Timestamp;
import java.util.ArrayList;

/**
 * Incluye lista de peticiones 
 *
 */
public class CancionCVO {
	private int id;
	private String titulo;
	private String autor;
	private Time duracion;
	private String caratula;
	private boolean dedicable;
	private Timestamp fchUltRep;
	private Timestamp fchPrmPet;
	private String path;
	
	private ArrayList peticiones;
	
	public CancionCVO(int id, String titulo, String autor, Time duracion, String caratula, boolean dedicable, Timestamp fchUltRep, Timestamp fchPrmPet, String path, ArrayList peticiones) {
		super();
		this.id = id;
		this.titulo = titulo;
		this.autor = autor;
		this.duracion = duracion;
		this.caratula = caratula;
		this.dedicable = dedicable;
		this.fchUltRep = fchUltRep;
		this.fchPrmPet = fchPrmPet;
		this.path = path;
		this.peticiones = peticiones;
	}
	public String getAutor() {
		return autor;
	}
	public void setAutor(String autor) {
		this.autor = autor;
	}
	public String getCaratula() {
		return caratula;
	}
	public void setCaratula(String caratula) {
		this.caratula = caratula;
	}
	public boolean isDedicable() {
		return dedicable;
	}
	public void setDedicable(boolean dedicable) {
		this.dedicable = dedicable;
	}
	public Time getDuracion() {
		return duracion;
	}
	public void setDuracion(Time duracion) {
		this.duracion = duracion;
	}
	public Timestamp getFchPrmPet() {
		return fchPrmPet;
	}
	public void setFchPrmPet(Timestamp fchPrmPet) {
		this.fchPrmPet = fchPrmPet;
	}
	public Timestamp getFchUltRep() {
		return fchUltRep;
	}
	public void setFchUltRep(Timestamp fchUltRep) {
		this.fchUltRep = fchUltRep;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitulo() {
		return titulo;
	}
	public void setTitulo(String titulo) {
		this.titulo = titulo;
	}
	
	public String toString(){
		return "id = '" + id +
			"' titulo = '" + titulo +
			"' autor = '" + autor +
			"' duracion = '" + duracion +
			"' caratula = '" + caratula +
			"' dedicable = '" + dedicable +
			"' fchUltRep = '" + fchUltRep +
			"' fchPrmPet = '" + fchPrmPet +
			"' path = '" + path +
			"' peticiones = '" + peticiones + "'";
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public ArrayList getPeticiones() {
		return peticiones;
	}
	public void setPeticiones(ArrayList peticiones) {
		this.peticiones = peticiones;
	}
	
	

}
